﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Technoera.Common.Interop.OleDb
{
    public class FixedExportMapping<T> : ExportMappingBase
    {
        public FixedExportMapping(T fixedData, string targetColumnName, DataTypeDefinition targetColumnDataType)
            : base(targetColumnName, targetColumnDataType)
        {
            FixedData = fixedData;
        }

        public T FixedData { get; set; }

        #region IExportMapping Members

        public override object GetPropertyValue(object instance)
        {
            return FixedData;
        }

        #endregion
    }
}
